package com.dog.basics.bean.dto.admin.mtkj;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @author hangdy
 * @description: TODO
 * @date 2020/11/13 9:21
 */
@Data
public class DiscountCouponAddDto {

    /**
     * 优惠券名称
     */
    @NotNull(message = "优惠券名称不能为空")
    @ApiModelProperty(value = "优惠券名称", dataType = "String", required = true)
    @Size(min = 1,max = 50,message = "格式不正确")
    private String discountCouponName;

    /**
     * 优惠券面值
     */
    @NotNull(message = "优惠券面值不能为空")
    @ApiModelProperty(value = "优惠券面值", dataType = "BigDecimal", required = true)
    private BigDecimal discountCouponValue;

    /**
     * 优惠券最低消费
     */
    @NotNull(message = "优惠券最低消费不能为空")
    @ApiModelProperty(value = "优惠券最低消费", dataType = "BigDecimal", required = true)
    private BigDecimal minimumConsumption;

    /**
     * 使用类型 : 0:满减 1:折扣
     */
    @NotNull(message = "使用类型不能为空")
    @ApiModelProperty(value = "使用类型: 0:满减 1:折扣", dataType = "Integer", required = true)
    private Integer couponType;

    /**
     * 设备端消费够多少领取规则
     */
    @NotNull(message = "设备端消费够多少领取规则不能为空")
    @ApiModelProperty(value = "设备端消费够多少领取规则", dataType = "BigDecimal", required = true)
    private BigDecimal deviceMoney;
    /**
     * 折扣
     */
    @ApiModelProperty(value = "折扣", dataType = "BigDecimal", required = false)
    private BigDecimal discount;

    /**
     * 优惠券描述
     */
    @ApiModelProperty(value = "优惠券描述", dataType = "String", required = true)
    @NotNull(message = "优惠券描述不能为空")
    @Size(min = 1,max = 255,message = "格式不正确")
    private String content;

    /**
     * 优惠券有效开始时间
     */
    @NotNull(message = "优惠券有效开始时间不能为空")
    @ApiModelProperty(value = "优惠券有效开始时间", dataType = "Long", required = true)
    private Long discountCouponStartTime;

    /**
     * 优惠券有效结束时间
     */
    @NotNull(message = "优惠券有效结束时间不能为空")
    @ApiModelProperty(value = "优惠券有效结束时间", dataType = "Long", required = true)
    private Long discountCouponEndTime;


}
